FROM enmotech/opengauss

ENV init-db=opengauss
ENV PGDATA=/var/lib/opengauss/data
ENV LANG=en_US.utf8

RUN /bin/sh -c chmod 755 /usr/local/bin/entrypoint.sh;ln -s /usr/local/bin/entrypoint.sh / # backwards compat

EXPOSE 5432
ENTRYPOINT ["entrypoint.sh"]
CMD ["gaussdb"]